package com.tansun.easycare.rule.datacomponent.entity;

import java.io.Serializable;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

/**
 * 数据源Entity
 *
 * @author lph
 * @version 2017-09-18
 */
public class RuleDatacomponent extends RuleBaseEntity<RuleDatacomponent> implements Serializable {

    private static final long serialVersionUID = 1L;
    private String manageId;        // 规则模型管理ID
    private String projectCode;        // 规则库编码
    private String datasourceurl;        // 数据源信息
    private String eventType;        // 事件类型
    private String eventName;        //事件名称
    private String dataKey;        // 返回值关键字
    private String inParams;        // 入参（json格式[{paramName:
    private String outParams;        // 入参（json格式[{paramName:
    private String remark;        // 备注
    private String version;    //版本号

    public RuleDatacomponent() {
        super();
    }

    public RuleDatacomponent(String id) {
        super(id);
    }

    @Length(min = 0, max = 50, message = "规则模型管理ID长度必须介于 0 和 50 之间")
    public String getManageId() {
        return manageId;
    }

    public void setManageId(String manageId) {
        this.manageId = manageId;
    }

    @Length(min = 0, max = 50, message = "规则库编码长度必须介于 0 和 50 之间")
    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    @Length(min = 0, max = 100, message = "数据源信息长度必须介于 0 和 100 之间")
    public String getDatasourceurl() {
        return datasourceurl;
    }

    public void setDatasourceurl(String datasourceurl) {
        this.datasourceurl = datasourceurl;
    }

    @Length(min = 0, max = 50, message = "事件类型长度必须介于 0 和 50 之间")
    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    @Length(min = 0, max = 50, message = "返回值关键字长度必须介于 0 和 50 之间")
    public String getDataKey() {
        return dataKey;
    }

    public void setDataKey(String dataKey) {
        this.dataKey = dataKey;
    }

    @Length(min = 0, max = 400, message = "入参（json格式[{paramName:长度必须介于 0 和 400 之间")
    public String getInParams() {
        return inParams;
    }

    public void setInParams(String inParams) {
        this.inParams = inParams;
    }

    @Length(min = 0, max = 400, message = "入参（json格式[{paramName:长度必须介于 0 和 400 之间")
    public String getOutParams() {
        return outParams;
    }

    public void setOutParams(String outParams) {
        this.outParams = outParams;
    }

    @Length(min = 0, max = 100, message = "备注长度必须介于 0 和 100 之间")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

}